﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TanHungViet.Web.Models.MenuItem>>" %>
<%@ Import Namespace="TanHungViet.Helper"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	TRANG QUẢN LÝ NỘI DUNG
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="CssJsRef" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <div class="title-mainright1">
	    <h2 class="text1">
	        Quản Lý
	        <span style="margin:0 0 0 620px;">
             <% if (Session["UserName"] != null)
               { %>
                Chào <%= Session["UserName"]%>
                &nbsp;&nbsp;|&nbsp;&nbsp;
                <a href='<%=Url.Action("DoiMatKhau","QuanLyNoiDung") %>'>Đổi mật khẩu</a>
                &nbsp;&nbsp;|&nbsp;&nbsp;
                <a href='<%=Url.Action("DangXuat","QuanLyNoiDung") %>'>Đăng xuất</a>
            <% }
               else
               { %>
               Chưa đăng nhập
            <% } %>
            </span>
	    </h2>
    </div>
    
	<div class="content1">
		<div class="top-box2"><img src='<%=Url.Content("~/Content/images/top-box21.jpg")%>'/> </div>		
			<div class="center-box21">
			    <div id="center_nd1">
			        <center>
			            <table border="0" cellspacing="0" cellpadding="0">
		                    <tbody>
		                    <% int i = 0; %>
                                <tr>
		                            <td width="200" valign="top">
			                            <div class="menu_vn">
		                                    <a href="#" class="menuleft_vn">Quản Lý Nội Dung</a></div><div style="text-align:left">
		                                    <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("ThemSuaNoiDung", "QuanLyNoiDung", new {code=Constant.IDLienHe, contentType="none"}) %>' class="menuleft_subvn">
			                                        Liên Hệ &nbsp; 
			                                    </a>
		                                    </p>
		                                    <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("ThemSuaNoiDung", "QuanLyNoiDung", new {code=Constant.IDTuyenDung, contentType="none"}) %>' class="menuleft_subvn">
			                                        Tuyển Dụng &nbsp; 
			                                    </a>
		                                    </p>
		                                     <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("ThemSuaNoiDung", "QuanLyNoiDung", new {code=Constant.IDNoiDungBenTrai, contentType="none"}) %>' class="menuleft_subvn">
			                                        Nội dung bên trái &nbsp; 
			                                    </a>
		                                    </p>
		                                    <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("ThemSuaNoiDung", "QuanLyNoiDung", new {code=Constant.IDNoiDungThoiGianLamViec, contentType="none"}) %>' class="menuleft_subvn">
			                                        Thời gian làm việc &nbsp; 
			                                    </a>
		                                    </p>
		                                    <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("ThemSuaNoiDung", "QuanLyNoiDung", new {code=Constant.IDNoiDungQuangCaoBenPhai, contentType="none"}) %>' class="menuleft_subvn">
			                                        Quảng cáo bên phải &nbsp; 
			                                    </a>
		                                    </p>
		                                </div>
		                            </td>
			                        <td>&nbsp;</td>
			                        <%i++; %>
			                        
			                        <td width="200" valign="top">
			                            <div class="menu_vn">
		                                    <a href="#" class="menuleft_vn">Quản Lý DS Nội Dung</a></div><div style="text-align:left">
		                                    <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("QuanLyDSNoiDung", "QuanLyNoiDung", new {code=Constant.CodeGioiThieu}) %>' class="menuleft_subvn">
			                                        Giới Thiệu &nbsp; 
			                                    </a>
		                                    </p>
		                                    <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("QuanLyDSNoiDung", "QuanLyNoiDung", new {code=Constant.CodeDichVu}) %>' class="menuleft_subvn">
			                                        Dịch Vụ &nbsp; 
			                                    </a>
		                                    </p>
		                                     <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
			                                    <a href='<%=Url.Action("QuanLyDSNoiDung", "QuanLyNoiDung", new {code=Constant.CodeBaoGia}) %>' class="menuleft_subvn">
			                                        Báo Giá &nbsp; 
			                                    </a>
		                                    </p>
		                                </div>
		                            </td>
			                        <td>&nbsp;</td>
			                        <%i++; %>
			                        
		                        <% foreach( var item in Model){ %>
		                            <% if(i%4==0){ %>
		                                <tr>
		                            <%} %>
		                            
		                            <td width="200" valign="top">
			                            <div class="menu_vn">
		                                    <a href="<%=item.Link%>" class="menuleft_vn"><%=item.Title%></a>
		                                    &nbsp;
		                                    <a href='<%=Url.Action("ThemMenu", "QuanLyNoiDung", new { code = item.Code }) %>'>
		                                        <img src='<%=Url.Content("~/Content/images/symbolAdd.jpg")%>' width="16px"/>
		                                    </a>
		                                </div><div style="text-align:left">
		                                <%if (item.Code == "tin-tuc" || item.Code == "tu-van" || item.Code == "hoi-dap")
                                    {%>
	                                    <% foreach (var sub in item.SubMenu)
                                        {%>
	                                        <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
		                                        <a href='<%=Url.Action("QuanLyDSTinTuc", "QuanLyNoiDung", new { code = sub.Code }) %>' class="menuleft_subvn"><%=sub.Title%></a>
		                                        
	                                        </p>
	                                    <%}
                                    }
                                    else
                                    {%>
                                     <% foreach (var sub in item.SubMenu)
                                        {%>
	                                        <p>&nbsp;<img src='<%=Url.Content("~/Content/images/ico_list.gif")%>'/>
		                                        <a href='<%=Url.Action("QuanLyDSDuAn", "QuanLyNoiDung", new { code = sub.Code }) %>' class="menuleft_subvn"><%=sub.Title%></a>
		                                        
	                                        </p>
	                                    <%}
                                    } %>
		                                </div>
		                            </td>
			                        <td>&nbsp;</td>
		                            
		                            <% if(i%4==3){ %>
		                                </tr>
		                            <%} i++;%>
		                        <%} %>
		                    </tbody>
		               </table>
		          </center>			
			    </div>
			</div>            	
		<div class="bottom-box2"><img src='<%=Url.Content("~/Content/images/bottom-box21.jpg")%>'	></div>
	</div> 
</asp:Content>

